﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GameVLTK
{
    public class PrototypesManager
    {
        public List<VisibleGameEntity> Prototypes;

        public PrototypesManager()
        {
            this.Prototypes= new List<VisibleGameEntity>();
        }

        /// <summary>
        /// Clone ra một đối tượng dựa vào Id
        /// </summary>
        public VisibleGameEntity GetPrototypeById(int id)
        {
            if (id >= 0 && id < Prototypes.Count)
                return this.Prototypes.ElementAt(id).Clone();

            return null;
        }
    }
}
